<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<p:dialog xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" 
	modal="true" width="800" height="300" resizable="false" 
	widgetVar="dialogListEstado" id="listDialogEstado"
	appendToBody="true">
	
<h:head>
	<style>
		.ui-widget {
			font-size:13px; 
		}
	</style>
</h:head>

	<f:facet name="header">
			<h:outputText value="Consultar Estado"/>
	</f:facet>
	
	<h:form>
		<div style="margin-left:5%;">
			<h:panelGrid columns="1" style="float:left;width: 660px;height:40px;">
				<h:outputText value="Código:"/>
				<h:inputText style="width:100px;"/>
			</h:panelGrid>
		
		<h:panelGrid columns="2" style="float:left;width: 660px;height:40px;">
			<h:outputText value="Estado"/>
			<h:outputText value="País"/>
			<h:inputText style="width:250px;"/>
			<h:inputText style="width:250px;"/>
		</h:panelGrid>
		
		<div style="float:left;width:95%; padding-bottom:10px;padding-top:10px;text-align:right;">
			<p:commandButton value="Consultar" style="height:28px;"/>
			<p:commandButton value="Novo" style="height:28px;" onclick="dialogAddEstado.show();"/>
			<p:commandButton value="Limpar" style="height:28px;"/>
		</div>
		
		<div style="float:left;">
			<p:dataTable style="width:700px"  var="pais" value="#{paisBean.paises}">  
		        <p:column headerText="Código" style="width:100px;">  
		            <h:outputText value="#{pais.id}" />  
		        </p:column>  
		  
		        <p:column headerText="Estado">  
		            <h:outputText value="#{pais.pais}" />  
		        </p:column> 
		        
		        <p:column headerText="País">  
		            <h:outputText value="#{pais.pais}" />  
		        </p:column>   

	  	  </p:dataTable>
		</div>
	</div>
	<ui:include src="formEstado.xhtml"></ui:include>
	</h:form>
</p:dialog>